<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">

    <title th:text="${menu==null?'菜单新增':'菜单编辑'}"></title>

</head>

<body>
<h1 th:text="${menu==null?'菜单新增':'菜单编辑'}"></h1>
<form action="/menu/doAdd" method="post">
    <input type="hidden" name="id" th:value="${menu==null?'':menu.id}">
    菜单名:<input type="text" name="menuName" th:value="${menu==null?'':menu.menuName}" ><br/>
    菜单地址:<input type="text" name="url" th:value="${menu==null?'':menu.url}" ><br/>
    <input type="submit" value="保存">
</form>
</body>

</html>